package cn.yuhh.api.v1.user;

import cn.yuhh.api.helper.ApiResponse;
import cn.yuhh.api.service.AbstractApiService;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author ysw
 * @create 2020-03-16-20:10
 * @descreption 退出登录
 **/
@Component("loginOut1.0")
public class LoginOutService extends AbstractApiService {
    @Override
    public Map service(Map request) {
        AbstractApiService.sessionManager.remove(selfId(request));
        return ApiResponse.success();
    }
}
